import java.net.ServerSocket;
import java.net.Socket;
import java.util.Random;

public class BadugiTable {
	
	int playerChips[] = null;
	boolean playerStatus[] = null;
	
	String[] playerCards = null;
	String[][] playerMoves;
	
	int[] betsAllGame;
	int[] betsThisRound;
	int movesThisRound = 0;
	int maxBetHolder = 0;
	
	int pot = 0;
	int currentRoundPot = 0;
	
	int currentRound = 1;
	
	public BadugiTable(Socket sockets[], ServerSocket server) {
		
		
	}
	
	String[] newDeckOfCards() {
		String[] newDeck = new String[52];
		
		int[] numbers = new int[]{1,2,3,4,5,6,7,8,9,10,11,12,13};
		String[] colors = new String[]{"Red-Heart", "Red-Diamond", "Black-Spade", "Black-Club"};
		
		int index = 0;
		
		for (int i = 0; i < numbers.length; i++) {
			for (int j = 0; j < colors.length; j++) {
				newDeck[index] = numbers[i] + "-" + colors[j];
					
				index += 1;
			}
		}
		
		return newDeck;
	}
	
	/** Shuffles a deck of cards. **/
	String[] shuffleDeck(String[] oldDeck) {
		Random random = new Random();
		
	    for (int i = oldDeck.length - 1; i > 0; i--) {
	      int index = random.nextInt(i + 1);
	     
	      String oldIndexValue = oldDeck[index];
	      
	      oldDeck[index] = oldDeck[i];
	      oldDeck[i] = oldIndexValue;
	    }
	    
	    return oldDeck;
	}
	
	

}
